import request from '@/utils/request'

export function listmonitorLedgerMain(query) {
  return request({
    url: '/framework/monitorLedgerMain/list',
    method: 'get',
    params: query
  })
}


// 下拉选项
export function selectList(query) {
  return request({
    url: '/system/monitor/listSelect',
    method: 'get',
    params: query
  })
}
export function getQualityMonitorLeaders(data) {
  return request({
    url: '/framework/monitorLedgerMain/getQualityMonitorLeaders',
    method: 'post',
    data: data
  })
}





export function delmonitorLedgerMain(compFeeIds) {
  return request({
    url: '/framework/monitorLedgerMain/' + compFeeIds,
    method: 'delete'
  })
}
export function monitorLedgerMainAdd(data) {
  return request({
    url: '/framework/monitorLedgerMain',
    method: 'post',
    data: data
  })
}
export function updategmonitorLedgerMain(data) {
  return request({
    url: '/framework/monitorLedgerMain',
    method: 'put',
    data: data
  })
}
export function monitorLedgerMainInfo(query) {
  return request({
    url: '/framework/monitorLedgerMain/' + query,
    method: 'get',
  })
}

export function effectmonitorLedgerMain(id, effect) {
  console.log('11')
  return request({
    url: '/framework/monitorLedgerMain/effect/' + id + '/' + effect,
    method: 'put',
  })
}

// 上传签到表 type 1首次 2末次 3总结报告
export function signFile(query) {
  return request({
    url: '/framework/monitorLedgerMain/signFile',
    method: 'get',
    params: query
  })
}

